package com.gagakuai.config;

import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.annotation.Order;

/*
 * @program: settement
 * @description:
 * @author: houhong
 * @create: 2022-11-13 20:34
 */
@Order(122)
public class BeanApplicationContextIniner implements ApplicationContextInitializer {

    @Override
    public void initialize(ConfigurableApplicationContext applicationContext) {

        System.out.println("容器中的beanDenition个数:" + applicationContext.getBeanDefinitionCount());
    }
}